<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>《C语言程序设计》在线考试系统- 分配角色权限 </title>
<meta name="Copyright" content="Douco Design." />
<link href="{$smarty.const.Admin_URL}css/public.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="{$smarty.const.Admin_URL}js/jquery.min.js"></script>
<script type="text/javascript" src="{$smarty.const.Admin_URL}js/global.js"></script>
</head>
{include file="../Index/top.html"}
 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">题库首页<b>></b><strong>分配角色权限</strong> </div>   <div id="manager" class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
    <h3><a href="{$smarty.const.__CONTROLLER__}/role.html" class="actionBtn" style="margin-right:10px">返回</a>
      <a href="{$smarty.const.__MODULE__}/Auth/auth.html" class="actionBtn add" style="margin-right:10px">添加权限</a> 分配角色权限[{$info.role_name}]</h3>
    <form action="{$smarty.const.__SELF__}" method="post" enctype="multipart/form-date">
        <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
     <tr>
      <th width="30" align="center">编号</th>
      <th align="left">权限分类</th>
      <th align="left">权限列表</th>
     </tr>
          {foreach $auth1 as $a}
          <tr>
      <td align="center">{$a@iteration}</td>
      <td align="left">
      <input type="checkbox" name="auth_id[]" value="{$a.auth_id}"{if in_array($a.auth_id,$ids)} checked="checked"{/if}/>
      {$a.auth_name}</td>
      <td align="left">
      {foreach $auth2 as $aa} 
      	{if $aa.auth_pid==$a.auth_id}
      <input type="checkbox" name="auth_id[]" value="{$aa.auth_id}"{if in_array($aa.auth_id,$ids)} checked="checked"{/if}/>
      <span style="margin:0 10px 0 10px;" >{$aa.auth_name}</span>
      	{/if}
      {/foreach}
      </td>
     </tr>
     {/foreach}
       </table>
         <input class="btn" type="submit" style="margin:10px 0 0 50%" value="提交" />
         </form>
                       </div>
 </div>
 <div class="clear"></div>
<div id="dcFooter">
 <div id="footer">
  <div class="line"></div>
  <ul>
《C语言程序设计》在线考试系统，版权所有
  </ul>
 </div>
</div><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
</body>
</html>